package com.onedec.camera.controller;

import com.onedec.camera.service.DeptService;
import com.onedec.utils.ResponseEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController

public class DeptController {
@Autowired
private DeptService deptService;
    @RequestMapping("getProjects")
public ResponseEntity getProjects()throws Exception{
    return new ResponseEntity(deptService.selectBySts());
}
}
